package com.firebird.app.kotlin.stock.ui.index_fragment.money.fragment

import android.os.Bundle
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import butterknife.BindView
import butterknife.OnClick
import butterknife.Unbinder
import com.firebird.app.kotlin.stock.base.BaseFragment
import com.firebird.app.kotlin.stock.Config
import com.firebird.app.kotlin.stock.R
import com.firebird.app.kotlin.stock.ui.allocation_plan.AllocationPlanActivity


class FragmentFree : BaseFragment() {
    @BindView(R.id.img)
    var img: ImageView? = null
    var unbinder: Unbinder? = null
    @BindView(R.id.tv_apply)
    var tvApply: TextView? = null
    var unbinder1: Unbinder? = null
    private val bundle = Bundle()
    override fun initView(view: View?) {
        img!!.setImageResource(R.mipmap.mianxi)
    }

    override val layoutId: Int
        protected get() = R.layout.fragment_type

    @OnClick(R.id.tv_apply)
    fun onViewClicked() {
        bundle.putInt("mIndex", Config.FREE)
        toClass(activity!!, AllocationPlanActivity::class.java, bundle)
    }
}